package com.example.demo1.utils;

import javafx.scene.canvas.GraphicsContext;
import javafx.scene.image.Image;

import java.net.URL;

public class ImageUntil {
    public static Image getImage(String image) {
        URL url = ImageUntil.class.getResource(image);
        return new Image(url.toString());
    }
}
